package com.xja.feignclient;

import com.xja.entity.Bookinfo;
import com.xja.entity.PageResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author 周广瑞
 * @date 2022/4/26 15:45
 */
@Component
@FeignClient(value = "bookService")
public interface BookService {
    //按照用户id 查询用户信息
    @RequestMapping("/book/findbookbybid")
    public PageResult<Bookinfo> findBookByBid(@RequestParam("bid")Integer bid);
}
